#from SeerGlobal import *
#from SeerFight import *
#task = get_value('Task')
#zhan = get_value('Zhan')
import os
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import *      #无边框,选框,动画
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *

_path = ''
_path = sys.argv[0]
_path = os.path.dirname(_path)
if _path[-8:] == 'SeerMain':
    _path = str(_path[0:-8])
sys.path.append(_path + '\\List\\SeerNode')#Yoso路径
sys.path.append('./')#当前相对路径

sys.path.append(_path + '\\List\\SeerNode\\nodeeditor')#Yoso路径
sys.path.append('./nodeeditor')#当前相对路径

sys.path.append(_path + '\\List\\SeerNode\\examples\\example_calculator')#Yoso路径
sys.path.append('./examples/example_calculator')#当前相对路径

from examples.example_calculator.calc_window import CalculatorWindow
from examples.example_calculator.tuoZhan import *



def job():
    """ 节点编辑器
        该文件是为了YoSo来启动程序
        所以job函数内不应该有代码
    """
    pass

if __name__ == "__main__":
    app=QtWidgets.QApplication(sys.argv)
    #QApplication作为QT主脉必须在最前面
    jobw=CalculatorWindow()
    jobw.setWindowFlags(Qt.WindowStaysOnTopHint)#置顶要在show前面
    jobw.show()
    sys.exit(app.exec_())
else:
    jobw=CalculatorWindow()
    jobw.setWindowFlags(Qt.WindowStaysOnTopHint)#置顶要在show前面
    jobw.show()